import request from '@/utils/request'

const baseApi = '/auth'

export function doLogin(reqData) {
  return request({
    url: `${baseApi}/doLogin`,
    method: 'POST',
    data: reqData
  })
}

export function getUserInfo(token) {
  return request({
    url: `${baseApi}/account/userInfo`,
    method: 'POST',
    params: { token }
  })
}

export function doLogout(token) {
  return request({
    url: `${baseApi}/account/doLogout`,
    method: 'POST',
    params: { token }
  })
}
